package boun.center;

import com.google.android.maps.GeoPoint;

public class MapLocation {
    String title, description;
    double latitude, longitude;

    public MapLocation(String title, String description, double latitude,
            double longitude) {
        super();
        this.title = title;
        this.description = description;
        this.latitude = latitude;
        this.longitude = longitude;
    }
    
    public GeoPoint getGeoPoint() {
        return new GeoPoint((int) (latitude * 1E6), (int) (longitude * 1E6));
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }
}
